package com.swanclouds.redfish.common.redfish;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.swanclouds.model.ModelEntity;

import java.util.Map;

/**
 * @author 李文强
 * description
 */

public class SubmitTestEvent implements ModelEntity {
    @JsonProperty("EventType")
    private String eventType;

    @JsonProperty("EventId")
    private String eventId;

    @JsonProperty("EventTimestamp")
    private String eventTimestamp;

    @JsonProperty("Severity")
    private String severity;

    @JsonProperty("Message")
    private String message;

    @JsonProperty("MessageId")
    private String messageId;

    @JsonProperty("MessageArgs")
    private String[] messageArgs;

    @JsonProperty("OriginOfCondition")
    private Map<String,Object> originOfCondition;

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getEventTimestamp() {
        return eventTimestamp;
    }

    public void setEventTimestamp(String eventTimestamp) {
        this.eventTimestamp = eventTimestamp;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String[] getMessageArgs() {
        return messageArgs;
    }

    public void setMessageArgs(String[] messageArgs) {
        this.messageArgs = messageArgs;
    }

    public Map<String, Object> getOriginOfCondition() {
        return originOfCondition;
    }

    public void setOriginOfCondition(Map<String, Object> originOfCondition) {
        this.originOfCondition = originOfCondition;
    }

    @Override
    public String toString() {
        return "SubmitTestEvent{" +
                "eventType='" + eventType + '\'' +
                ", eventId='" + eventId + '\'' +
                ", eventTimestamp='" + eventTimestamp + '\'' +
                ", severity='" + severity + '\'' +
                ", message='" + message + '\'' +
                ", messageId='" + messageId + '\'' +
                ", messageArgs='" + messageArgs + '\'' +
                ", originOfCondition=" + originOfCondition +
                '}';
    }
}
